package com.wiwf.model.mapper.admin.dao;

import com.wiwf.model.mapper.admin.bean.SysMenuEntity;
import com.wiwf.model.mapper.admin.bean.SysUserEntity;
import com.wiwf.model.bean.SysUserVoto;
import org.apache.ibatis.annotations.Param;

import com.gitee.fastmybatis.core.mapper.CrudMapper;

/**
 * @author kehui
 */
public interface SysUserMapper extends CrudMapper<SysUserEntity, Integer> {

	/**
	 * 用户信息
	 * @param userName 名
	 * @return SysUserVoto
	 */
	SysUserVoto getUserInfo(@Param("username") String userName);
	SysUserVoto getUnitUserInfo(@Param("username") String userName, @Param("unitCode") String unitCode);

	/**
	 * 用户菜单信息
	 * @param roleId 角色编号
	 * @return 菜单
	 */
	SysMenuEntity getMenus(@Param("roleId") String roleId);
	
	
}
